let PointData = new Array(16).fill(undefined).map((item, index) => {
  return {
    title: `第${index + 1}点`,
    width: 90,
    dataIndex: `item${index}`,
    align: 'center',
    key: `item${index}`,
  };
});
export const COLUMNS = [
  {
    title: '类别',
    width: 80,
    dataIndex: 'name',
    key: 'name',
    fixed: 'left',
  },
  ...PointData,
];

export function setPoint(key, data) {
  let obj = {
    key,
    name: key === 'beforeData' ? '调整前' : '调整后',
  };
  data.map((item, index) => {
    obj[`item${index}`] = `${item}%`;
  });
  return obj;
}
